package com.sskj.jgxt.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;

import com.sskj.core.query.annotation.DynamicQuery;
import com.sskj.core.repository.GenericRepository;
import com.sskj.jgxt.jd.entity.JianDuJiLu;
import com.sskj.jgxt.param.RiZhiQueryParam;



public interface RiZhiJLRepository extends GenericRepository<JianDuJiLu, String> {

	

	@Query(value = "from JianDuJiLu x where 1=1  "			
			+ "<notEmpty name='userid'> and x.jlr=:userid </notEmpty> order by  x.createdTime desc ")
	@DynamicQuery
	Page<JianDuJiLu> findRZJLPage(RiZhiQueryParam rzQueryParam, Pageable pageable);
	


}
